package com.graduation.springbootinit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.springbootinit.model.entity.CulturePart.ClothingHistoryPeriod;
import com.graduation.springbootinit.model.entity.CulturePart.ClothingHistoryDetail;
import java.util.List;

public interface ClothingHistoryService extends IService<ClothingHistoryPeriod> {
    /**
     * 获取所有历史时期（按时间顺序）
     */
    List<ClothingHistoryPeriod> listPeriods();
    
    /**
     * 获取指定时期的服饰详情列表
     */
    List<ClothingHistoryDetail> listDetailsByPeriodId(Long periodId);
    
    /**
     * 获取服饰详情
     */
    ClothingHistoryDetail getDetailById(Long id);
    
    /**
     * 添加历史时期
     */
    Long addPeriod(ClothingHistoryPeriod period);
    
    /**
     * 添加服饰详情
     */
    Long addDetail(ClothingHistoryDetail detail);
    
    /**
     * 更新历史时期
     */
    void updatePeriod(ClothingHistoryPeriod period);
    
    /**
     * 更新服饰详情
     */
    void updateDetail(ClothingHistoryDetail detail);
} 